exports.main = async (event, context) => {
  // console.log(event.query);
  let {min, max} = event;
  return new Promise((resolve, reject) => {
    resolve({
      result: parseInt(Number(min) + (Math.random() * ( Number(max) - Number(min) + 1))),
      context
    })
  })
}